from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String,Text

Base = declarative_base()
class Q_choice(Base):
    __tablename__ = 'q_choice'
    id = Column(Integer, primary_key=True)
    language=Column(Text,nullable=False)
    question = Column(String(100),nullable=False)
    A = Column(String(200), nullable=False)
    B = Column(String(200), nullable=False)
    C = Column(String(200),nullable=False)
    D = Column(String(200))
    answer = Column(Text)
    type = Column(Integer, nullable=False)

class Q_word(Base):
    __tablename__ = 'q_word'
    id = Column(Integer, primary_key=True)
    language = Column(String(100), nullable=False)
    question = Column(Text,nullable=False)
    answer = Column(Text)
    type = Column(Integer, nullable=False)


class Cloud_config(Base):
    __tablename__ = 'cloud_config'
    id = Column(Integer, primary_key=True)
    type = Column(String(10), nullable=False)
    value= Column(String(10),nullable=False)

from token_login.model import User